module.exports = {
  apps : [{
    name:"ncp",
    script: "./serve.mjs",
    exec_mode:"cluster",
    instances:"max",
    max_memory_restart:"4G",
    autorestart:true,
    watch: false,
    ignore_watch:["node_modules","logs"],
    log_date_format:"YYYY-MM-DD HH:mm Z",
    error_file:`./logs/error/error.log`,
    out_file:"./logs/console/console.log",
    pid_file:"./logs/pid/pid.log",
    merge_logs:true,
    post_update:["npm install"]
  }]
};
